//
// Created by 吴锐 on 2022/2/26.
//

#include "iostream"

using namespace std;

class Animal {
public:
    int m_Age;
};

class Sheep : virtual public Animal {

};

class Tuo : virtual public Animal {

};

class SheepTuo : public Sheep, public Tuo {

};

void test01() {
    SheepTuo sheepTuo;
    sheepTuo.Sheep::m_Age = 18;
    sheepTuo.Tuo::m_Age = 28;

    cout << sheepTuo.Sheep::m_Age << endl;
    cout << sheepTuo.Tuo::m_Age << endl;
    cout << sheepTuo.m_Age << endl;
}

int main() {
    test01();
    return 0;
}